﻿
@{
    Layout = null;
    
    var msg = ViewBag.msg as WebApplication1.Models.Class1;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div> 
        <h1>
            Welcome to ASP.NET MVC！
        </h1>
        <h2>
            姓名:@msg.name
        </h2>
        <h2>
            年龄:@msg.year
        </h2>
        <a href="/Default/About">点我啊··</a>
    </div>
</body>
</html>
